<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
    <title>坦白说，匿名说，放心说，给你一个表述的机会！</title>
    <script src="./js/jquery-3.2.1.min.js"></script>
    <script src="./js/jquery.toast.js"></script>
    <script src="./js/func.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/jquery.nicescroll/jquery.nicescroll.min.js"></script>
    <!--[if lt IE 9]>
    <script src="./js/json2.js"></script>
    <![endif]-->
    <script src="./js/firefox.js"></script>
    <link rel="stylesheet" href="./css/jquery.toast.css" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="./css/animate.css"/>
    <link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_1430020_q3f8wroxs5.css"/>
    <link rel="stylesheet" type="text/css" href="./css/main.css"/>
    <!--<script src="https://cdn.tiny.cloud/1/os011d1rhdvuzu1iefufh3uy5qj3ltrye7vqdaf54ay7qidi/tinymce/5/tinymce.min.js"></script>-->
    <script src="./js/tinymce/tinymce.min.js"></script>
</head>
<body>
<div class="-box topbar">
    <icon class="icon-home"> 坦白说</icon>
    匿名说，放心聊，给你一个表述的机会！
    <div style="position: absolute;right:150px;top:10px;display:none" id="home-ops-layout">
        <button onclick="backToHome()">返回主题</button>
        <span id="other-ops-layout" style="margin-left:20px;"></span>
    </div>
</div>
<div class="content-layout">
    <div id="topicList" class="-box content-box"></div>
</div>

<div class="page-footer">
    <click class="gitlab" onclick="goGitLab()">-- 本项目开源 本地GitLab仓库</click>
    <click class="gitlab" onclick="goGiteeLab()"> Gitee仓库 --</click>
</div>
<div class="popLayout" id="popLayout">
    <div id="popLayoutContent" class="-box popLayoutContent"></div>
</div>
<div class="-box push-box" onclick="showPushButton()">
    <img src="./images/guest.png" style="width:50px;margin: 5px;vertical-align:middle;">
    <button onclick="showPushForm()">发表</button>
</div>
<div id="history-today" class="-box history-today-box" onclick="showTodayHistory()">
    <div>
        <img src="./images/comment.png" style="width:40px;margin: 5px;vertical-align:middle;margin-top:10px;margin-left:10px;">
        <span class="history-topic">历史上的今天</span>
        <icon class="icon-cuowu close" onclick="closeTodayHistory()"></icon>
    </div>
    <div class="history-today-content">
        <div style="padding:10px;">正在加载历史上的今天...</div>
    </div>
</div>
<div class="go-top -box">
    <icon class="icon-top"></icon>
</div>
<div id="background" class="background" style="display: none;z-index: 6002 "></div>
<div id="progressBar" class="progressBar" style="display: none;z-index: 6002 ">正在提交申请...</div>
<script>
    var dialog;
    $(document).ready(function () {
        dialog = $("#background,#progressBar");
        //$.getScript('./js/func.js');
        $.getScript('./js/index.js', function () {
            include('./portlet/popwindow.html');
            //loadStyleSheet('./css/main.css');
            loadPageLayout('./portlet/topic.html', $("#topicList"));
            /*
            if (self != top) {
                $(".content-layout").css({
                    lineHeight:100+"px",
                    textAlign: 'center',
                    fontSize:'50px'
                });
                $("#topicList").html("你来晚一步了，都散了！")
            }else {
                loadPageLayout('./portlet/topic.html', $("#topicList"));
            }*/
        });
        $(window).scroll(function () {
            onScroll();
        });
        $(".go-top").click(function () {
            $('html,body').animate({
                scrollTop: '0px'
            });
        });
        niceScroll($(".history-today-content"));
    });

    function goGitLab() {
        window.open('http://192.168.0.66/ai/tobefrank');
    }

    function goGiteeLab() {
        window.open('https://gitee.com/gekie/toBeFrank');
    }
</script>
</body>
</html>